package com.hitqz.robot.api.business.model.vo.patrol;

import com.hitqz.robot.api.business.enums.MediaEnum;
import com.hitqz.robot.api.business.enums.ResultTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "巡检项目类型")
public class PatrolCheckTypeVo {
    @Schema(description = "id")
    private Long id;
    @Schema(description = "巡检项目类型名称")
    private String name;
    @Schema(description = "媒体类型 0-拍照 1-测温 2-视频 3-音频")
    private String mediaType;
    @Schema(description = "媒体类型文本")
    private String mediaTypeStr;
    @Schema(description = "检测结果类型 0-无返回 1-浮点型 2-单个枚举 3-多个枚举 4-字符串 5-数显")
    private String resultType;
    @Schema(description = "检测结果类型显示文本")
    private String resultTypeStr;
    @Schema(description = "是否调用视觉 0-否 1-是")
    private Integer isVision;
    @Schema(description = "视觉服务地址")
    private String visionUrl;
    @Schema(description = "视觉类型值")
    private String visionType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMediaType() {
        return mediaType;
    }

    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;
    }

    public String getMediaTypeStr() {
        return MediaEnum.CMD_TYPE_DES.get(this.mediaType);
    }

    public void setMediaTypeStr(String mediaTypeStr) {
        this.mediaTypeStr = MediaEnum.CMD_TYPE_DES.get(this.mediaType);
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getResultTypeStr() {
        return ResultTypeEnum.CMD_TYPE_DES.get(this.resultType);
    }

    public void setResultTypeStr(String resultTypeStr) {
        this.resultTypeStr = ResultTypeEnum.CMD_TYPE_DES.get(this.resultType);
    }

    public Integer getIsVision() {
        return isVision;
    }

    public void setIsVision(Integer isVision) {
        this.isVision = isVision;
    }

    public String getVisionUrl() {
        return visionUrl;
    }

    public void setVisionUrl(String visionUrl) {
        this.visionUrl = visionUrl;
    }

    public String getVisionType() {
        return visionType;
    }

    public void setVisionType(String visionType) {
        this.visionType = visionType;
    }
}
